home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / arcutils.zip / READ.ME < prev    next >
Text File  |  1989-04-21  |  7KB  |  176 lines

  1. UNARC.EXE and CONVERT.EXE  Ver 1.05
  2. By Dave Harris
  3. Requestable from 1:302/5 24hrs
  4.  
  5.  
  6. I hereby place both these programs in the Public Domain.  You may modify them
  7. to your hearts content for your own usage.  You may not turn around and sell
  8. these programs and I would prefer that you not distribute modified versions.
  9. If you make modifications that you feel other people would like then send me
  10. a copy of the modified code and I *might* use them on future releases.
  11. Constructive comments are always welcome.  Net mail comments to 1:302/5.
  12.  
  13. Disclaimer:  I in no way take responsiblity if this program does not work
  14. on your system or causes damage to your files.  I *strongly* recommend a
  15. full backup before running the convert program on any of your download
  16. directories.
  17.  
  18.  
  19. UNARC:
  20. ------
  21.  
  22. This program allows you to unarchive any program(s) archived under SEAs, PKARC,
  23. NoGate's PAK, PKs ZIP, ZOO, DWC, LHARC and any other archiver that will come
  24. along.  Make sure that the unarchivers are in your path somewhere.
  25.  
  26. It has been tested with the following.
  27.  
  28. PKUNZIP 0.90   <- 0.92 should also work
  29. PAK 1.6
  30. DWC 5.01
  31. LHARC 1.00
  32. ZOO 2.01
  33. DOS 3.2 & 4.0
  34.  
  35. Added in version 1.05 is the UNARC.CFG file.  It comes with one already built
  36. that will handle the above mentioned formats.  You can modify it for your
  37. your own needs.  It has the following format.
  38.  
  39. .EXT unarc method
  40. .EXT unarc method
  41.  .
  42.  .
  43.  .
  44.  
  45. ie.
  46.  
  47. .ZIP PKUNZIP %s
  48. .LZH LHARC x %s
  49.  
  50. You may have up to 20 unarchivers in the .CFG file, and the unarc method
  51. can be up to 50 characters long.  (Modify the program if you need it
  52. larger)
  53.  
  54. The %s is where the filename will expand.  Each line can only have one
  55. %s though.  Why %s you ask?  Only a C programmer would see beauty behind
  56. it.
  57.  
  58. Make sure the UNARC.CFG file is in your path somewhere.
  59.  
  60. Running it is way simple.  Simply type
  61.  
  62. UNARC <filename>
  63.  
  64. and it will unarc it.  It you leave the filename blank it will unarch the whole
  65. directory (the files that are in archive format that is).  So if you do like I
  66. do and move one file off to a temporary area for testing, unarchive it, then
  67. move it to the download area (given it is not hacked or a trojan), then just
  68. typing UNARC at the temporary directory... Works like a charm.  You can use
  69. wildcards if you find the need to.  Also, you do not have to specify the
  70. extension if you are doing just one file.  ie: UNARC ROUND42  will unarc it
  71. no matter what format it is.
  72.  
  73. Note:  This program is not clever enough to decide what format something
  74.        is in if it has been renamed with a different extension (and you
  75.        have not specified that extension in the .CFG file).  I leave
  76.        that for a future version.
  77.  
  78.  
  79.  
  80. CONVERT:
  81. --------
  82.  
  83. Convert allows you to change your files from one format to another.
  84. Originally the program was written to convert only to the new LHARC format,
  85. but it has been beefed up to work from a user changeable .CFG file.  At the
  86. time this was written LHARC has beaten all the other archivers for size on
  87. all the examples I have tryed with the exception of a 300K text file (OPUS.DOC)
  88. in which PAK (1.6) beat it by a miserable 400 bytes.
  89. It is one heckova nice program in my opinion.  As an example of how much better
  90. it is the file MORIA.PAK which was 244K was reduced to 200K when converted to
  91. LHARC.  It is as much better than PAK, as PAK was over SEAs.  It even saves
  92. a surprising amount over PKZIP.
  93.  
  94. The same applies for CONVERT as did UNARC (ie. have the files in your path,
  95. and versions, and no renamed files).  UNARC and CONVERT are very similar
  96. programs.  If one fails to work the other probably will too.  In addition,
  97. Convert needs RED (redirect) to work.  RED works like MOVE.  I couldn't find
  98. MOVE so use this for the moment, or modify the code to use MOVE instead.
  99.  
  100. Convert works off the CONVERT.CFG file.  Once again make sure this file is
  101. is your path somewhere.  The CONVERT.CFG works much the same as the UNARC.CFG
  102. with the difference of the U and A options that are in front.  The U option
  103. specifies that this is an unarcing method and the A specifies a rearching
  104. method.  Note that you can have more that one rearcing method.  This is
  105. useful for benchmarking a number of archivers are the same file(s).  I
  106. included the CONVERT.CFG file that I am using.  It should be pretty straight
  107. forward to modify if you need to.
  108.  
  109. CAUTION:  Don't be foolish.  Back your files up.  If this fails for some
  110.           reason, it does have the potential to erase your directory.
  111.           Also, One person lost some files because he was running it in
  112.           a DDOS partition with not enough memory.  If you do not have
  113.           enough memory you will lose your files.  I ran some tests and
  114.           it starts to die when you have less than 250K.  PAK and ZIP
  115.           have unarching thresholds about 50K less than this.  To be safe,
  116.           don't run it under Double Dos or in a partition with less than
  117.           300 K.  Make a temporary directory and copy a few archived
  118.           files over to it and try CONVERT on that temporary directory
  119.           before you try it on the real thing.
  120.  
  121. Other than that.  Simply type
  122.  
  123. CONVERT <filename>
  124.  
  125. in the directory you want it to work on.  Don't specify a drive and/or directory
  126. you are not currently in..  This will not work.  If you leave it blank it will
  127. convert the whole directory.  Wildcards are allowed if you wanted to convert
  128. only part of your directory.  It will convert only files with the extensions
  129. you specified in the .CFG file and won't fiddle with your .EXE and other files.
  130. If your directory(s) are large, plan on it taking a while, even on a faster
  131. machine.  It took me a good 4 hours on a 20MHZ 286 to do about 65 Megs worth
  132. of converting...
  133.  
  134.  
  135. Revision History:
  136. -----------------
  137.  
  138. 1.00  first version...  Hard wired to do only the big 6.
  139.  
  140. 1.01  Added the .CFG file: Never made it to the public though
  141.  
  142. 1.05  Fixed it so it would search the path for the .CFG files if it
  143.       didn't find them in the current directory.
  144.  
  145.       Fixed the bug of specifying a file without an extension.
  146.       ie UNARC ROUND42 didn't work but does now.
  147.  
  148.       Made modifications to the code such that it accessed the directory
  149.       directly rather than dumping it to a file and parsing it.  This
  150.       should be a safer way of doing things.
  151.  
  152.  
  153. Next version:
  154. -------------
  155.  
  156. I will attempt to make an option in UNARC (and CONVERT I guess) that will
  157. look at files and try to tell what format they are in and then procede
  158. with that information.  I suspect this sort of thing will need to be hard-
  159. wired though.
  160.  
  161. A before and after type of summary giving how much room you saved in the
  162. CONVERT program.
  163.  
  164. An option to recursively unarc the programs.
  165.  
  166. An option to specify an alternate .CFG file
  167.  
  168. A View option that will let you specify Contents or let you actually look at a
  169. document File inside the archived file.
  170.  
  171. A way to conserve the date and time in the CONVERT program.  Still looking
  172. for a way to do this one..
  173.  
  174.  
  175.  
  176.